#include"MFO.h"

int main(){
	my_FILE* fp=my_fopen("data.txt","w");
	if(fp==NULL) return 1;
	int cnt=10;
	while(cnt--){
		printf("I'm writting\n");
		char* temp="This is a massage\n";
		my_fwrite(temp,1,strlen(temp),fp);
		sleep(1);
		if(cnt==5){
			int r=fork();
			if(r==0){
				printf("Are you OK? I'm going to checking.\n");
				printf("=================================\n");
				execl("ust/bin/cat","cat","data.txt",NULL);
			}
		}
	}
	my_fclose(fp);
	return 0;
}
